<?
	function parse_catalog($url, $b = true)
	{
		$url = str_replace(' ', '%20', $url);

		$catalog_selector = '.tbl4 tr td a';
		$dom = file_get_html($url);
		$years = array();
		foreach ($dom->find($catalog_selector) as $catalog) {
			if ($b)
			{
				$name = $catalog->find('b');
				$name = $name[0];				
			} 
			else
			{
				$name = $catalog;
			}
			$href = $catalog->href;
			$year = array();
			$year['name'] = $name->innertext;
			$year['href'] = $href;
			$years[] = $year;
			unset($year);
		}
		if (count($years) > 0)
		{
			return $years;
		}
		return false;
	}